<style type="text/css">
	.box{margin:0; padding:0}
	.stats .row{ width:100%; float:left; padding:10px;}
	.stats .row .activity{float:left; width:265px;}
</style>
<div class="full_w">
	<h1>Dashboard</h1>
    <div class="clear" style="padding-top:10px;"></div>
    <h2>Welcome to Admin Control Panel</h2>


    <table>
        <thead>
            <tr><th colspan="2" align="left">RECENT ACTIVITIES</th></tr>
        </thead>
        <tbody>
        <?php if(!empty($arrLogs)):?>
            <?php foreach($arrLogs as $R): ?>
            <tr>
                <td width="80%"><?php echo $R['log_message']; ?></td>
                <td><?php echo $R['log_time']; ?></td>
            </tr>
            <?php endforeach; ?>
            <?php else: ?>
            <tr>
                <td colspan="2">There is no recent activity found!</td>
            </tr>
        <?php endif; ?>      
        </tbody>
    </table>
    
    <table>
        <thead>
            <tr><th colspan="2" align="left">RECENTLY ADDED POSTS</th></tr>
        </thead>
        <tbody>
        <?php if(!empty($arrStats['post'])):?>
            <?php foreach($arrStats['post'] as $R): ?>
            <tr>
                <td width="80%"><?php echo $R['post_title']; ?></td>
                <td><?php echo $R['post_created_date']; ?></td>
            </tr>
            <?php endforeach; ?>
            <?php else: ?>
            <tr>
                <td colspan="2">There is no post found!</td>
            </tr>
        <?php endif; ?>      
        </tbody>
    </table>
	<!--
    <div class="half_w half_left">
        <div class="h_title">Content Stats</div>
        <div class="stats">
            <div class="row">
                <h3>378,215</h3> Posts
            </div>
            <div class="row">
            	<span>There is no recent activity found!</span>
            </div>
        </div>
    </div>
	<div class="half_w half_right">
        <div class="h_title">Post statistics</div>
        <div class="stats">
            <div class="today">
                <h3>Today</h3>
                <p class="count">2 349</p>
                <p class="type">Visits</p>
                <p class="count">96</p>
                <p class="type">Comments</p>
                <p class="count">9</p>
                <p class="type">Articles</p>
            </div>
        </div>
    </div>
	-->
</div> 